package com.jason.quectel0805.entities;

import java.util.List;

/**
 * @author：Jason
 * @date：2022/8/8 16:36
 * @email：1129847330@qq.com
 * @description:
 */
public class ResponseData {
    private ResponseDataBody data;
    private String errorCode;
    private String errorMsg;

    public ResponseDataBody getData() {
        return data;
    }

    public void setData(ResponseDataBody data) {
        this.data = data;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Override
    public String toString() {
        return "ResponseData{" +
                "data=" + data +
                ", errorCode='" + errorCode + '\'' +
                ", errorMsg='" + errorMsg + '\'' +
                '}';
    }

    public static class ResponseDataBody {
        private String curPage;
        private List<Article> datas;

        public String getCurPage() {
            return curPage;
        }

        public void setCurPage(String curPage) {
            this.curPage = curPage;
        }

        public List<Article> getDatas() {
            return datas;
        }

        public void setDatas(List<Article> datas) {
            this.datas = datas;
        }

        @Override
        public String toString() {
            return "ResponseDataBody{" +
                    "curPage='" + curPage + '\'' +
                    ", datas=" + datas +
                    '}';
        }

        public static class Article {
            private String link;
            private String niceDate;
            private String title;

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }

            public String getNiceDate() {
                return niceDate;
            }

            public void setNiceDate(String niceDate) {
                this.niceDate = niceDate;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            @Override
            public String toString() {
                return "Article{" +
                        "link='" + link + '\'' +
                        ", niceDate='" + niceDate + '\'' +
                        ", title='" + title + '\'' +
                        '}';
            }
        }
    }
}